import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'index',
    component: () => import(/*webpackChunkName: "index" */'@/views/index.vue')
  },
  {
    path: '/comTemplate',
    name: 'comTemplate',
    component: () => import(/*webpackChunkName: "template" */'@/views/comTemplate/comTemplate.vue')
  },
  {
    path: '/formTemplate',
    name: 'formTemplate',
    component: () => import(/*webpackChunkName: "template" */'@/views/formTemplate/formTemplate.vue')
  },
]

const router = new VueRouter({
  routes
})

export default router
